package mylab.usm.jap.httpAdapter.javax;

import com.fujieid.jap.http.JapHttpRequest;
import com.fujieid.jap.http.JapHttpResponse;
import lombok.experimental.UtilityClass;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@UtilityClass
public class JavaxAdapterUtil {
    public JapHttpRequest request(HttpServletRequest request) {
        return new JavaxRequestAdapter(request);
    }

    public JapHttpResponse response(HttpServletResponse response) {
        return new JavaxResponseAdapter(response);
    }


}
